# -*- coding: UTF-8 -*-
import _thread;
import time;


def printTime(threadTime ,delay):
    count=0;
    while count<5:
        time.sleep(delay);
        count+=1;
        print("%s: %s"%(threadTime,time.ctime(time.time())));


try:
    _thread.start_new(printTime,("Thread1",2,));
    _thread.start_new(printTime,("Thread2",4,));

except:
 print("error");
while 1:
    pass;

